<table>
  <tr>
    <th>标题</th>

    <th>排序</th>
    <th>出处</th>
    <th>简短描述</th>
    <th>是否推荐</th>
    <th>关键词</th>
    <th>点击数</th>
    <th>形像图片</th>
  </tr>

<% for article in @articles %>
  <tr>
    <td><%=h article.title %></td>

    <td><%=h article.article_order %></td>
    <td><%=h article.come_from %></td>
    <td><%=truncate(h(article.short_description),:length=>18) %></td>
    <td><%=h article.recommend %></td>
    <td><%=h article.key_word %></td>
    <td><%=h article.click_count %></td>
    <td><%= image_tag article.image_name ? "newsimgs/"+article.image_name : "no_image.png",:size=>"30x30" %></td>
    <td><%= link_to 'Edit', edit_article_category_article_path(article.article_category_id,article) %></td>
    <td><%= link_to 'Destroy', article_category_article_path(article.article_category_id,article), :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>
<%= will_paginate @articles %>